package com.baide.sanguanheyi.swing;

import java.io.Serializable;
import java.util.Map;
import java.util.Objects;

/**
 * @ClassName CacheBean
 * @Description TODO
 * @Author wangbing
 * @Date 2020/5/2 18:53
 **/
public class CacheBean implements Serializable {
    private String barCode;
    private String weight;
    private Map<String,Object> ct;
    private Map<String,String> luoDao;

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public Map<String, Object> getCt() {
        return ct;
    }

    public void setCt(Map<String, Object> ct) {
        this.ct = ct;
    }

    public Map<String, String> getLuoDao() {
        return luoDao;
    }

    public void setLuoDao(Map<String, String> luoDao) {
        this.luoDao = luoDao;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CacheBean cacheBean = (CacheBean) o;
        return Objects.equals(barCode, cacheBean.barCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(barCode);
    }
}
